home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2151 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: odie.et.fnt.hvu.nl!ico
  2. From: ico@odie.et.fnt.hvu.nl (Ico Doornekamp)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: interpreters
  5. Date: 19 Jan 1996 14:52:09 GMT
  6. Organization: Hogeschool van Utrecht, the Netherlands
  7. Message-ID: <4dob6p$eb1@elektron.et.tudelft.nl>
  8. References: <4d21k2$gkh@news-f.iadfw.net>
  9. NNTP-Posting-Host: odie.et.fnt.hvu.nl
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. dye (dye@airmail.net) wrote:
  13. : I am trying to create a script type language for a project at work and need
  14. : a basis for it.  I need something that can perform the basic math operations
  15. : and perform "if" constructs.  It occurs to me that C source for a BASIC 
  16. : interpreter would be a good start.  Also anything similar would be helpful.
  17. : If anyone has any ideas or pointers PLEASE mail me.  Thanks mucho
  18.  
  19. : Travis Dye
  20.  
  21. There is a tool available for creating interpreters/compiles called Yacc,
  22. or Bison for the GNU version. All you do is define the grammar of your
  23. language and which tokens do what, feed it to Yacc, which creates a C-source
  24. for the interpreter. Take a look at ftp: prep.ai.mit.edu for Bison and documentation. There are also DOS-ports available.
  25.